import request from '@/utils/request'

// 查询出差申请以及借款列表
export function listTripLoanApply(query) {
  return request({
    url: '/system/tripLoanApply/list',
    method: 'get',
    params: query
  })
}

// 查询出差申请以及借款详细
export function getTripLoanApply(id) {
  return request({
    url: '/system/tripLoanApply/' + id,
    method: 'get'
  })
}

// 新增出差申请以及借款
export function addTripLoanApply(data) {
  return request({
    url: '/system/tripLoanApply',
    method: 'post',
    data: data
  })
}

// 修改出差申请以及借款
export function updateTripLoanApply(data) {
  return request({
    url: '/system/tripLoanApply',
    method: 'put',
    data: data
  })
}

// 删除出差申请以及借款
export function delTripLoanApply(id) {
  return request({
    url: '/system/tripLoanApply/' + id,
    method: 'delete'
  })
}
